﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zocono.WCS.Domain.EntityInfo;
using Zocono.WCS.Infrastructure.ApllicationDto;
using Zocono.WCS.Infrastructure.ApllicationDto.WCSTaskDto;

namespace Zocono.WCS.Domain.WorkTaskDomain
{
    public interface IHistoryWorkTaskInfoServeice : IDomainService
    {
        Task<PageDto<HistoryWorkTaskInfoDto>> GetPagedWorkTaskInfoAsync(QueryHistoryWorkTaskInfoDto queryWorkTaskInfoDto);
        Task<PageDto<HistoryWorkTaskInfoDto>> GetPagedCurrentWorkTaskInfoAsync(QueryHistoryWorkTaskInfoDto queryWorkTaskInfoDto);

        Task<HistoryWorkTaskInfo> GetWorkTaskInfoByIdAsync(long id);

        /// <summary>
        /// 添加到历史任务表
        /// </summary>
        /// <param name="historyWorkTaskInfoDto"></param>
        /// <returns></returns>
        Task<bool> InsertHistoyWorkTaskInfoAsync(HistoryWorkTaskInfoDto historyWorkTaskInfoDto);

        /// <summary>
        /// 还原任务
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<bool> BackSetTaskAsync(long id);

    }
}
